<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 
    $this->load->view('view_header', $title);
	$title_buttons = array(
		"settings"=>true,
		"back"=>false,
		"home"=>false,
	);
	if (isset($settings)){
		if ($settings == false){
			$title_buttons['settings'] = false;
		}
	}
	
	if (isset($back)){
		if ($back == true){
			$title_buttons['back'] = true;
		}
	}
	
	if (isset($home)){
		if ($home == true){
			$title_buttons['home'] = true;
		}
	}
	
	$this->load->view('view_header_title', $title_buttons);

    $this->load->view($view, $payload);
	if (isset($footer_menu)){
			if ($footer_menu){
				$this->load->view('view_footer_menu');
			}
	}
	
	if (isset($allergies)){
		if ($allergies == true){
			$this->load->view('view_footer_allergies');
		}
	}
	
	$this->load->view('view_footer');  
	
        